package com.health.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 体检预约信息
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order implements Serializable {
    public static final String ORDER_TYPE_TELEPHONE = "电话预约";
    public static final String ORDER_TYPE_EMAIL = "邮箱预约";
    public static final String ORDER_TYPE_WEIXIN = "微信预约";
    public static final String ORDER_STATUS_YES = "已到诊";
    public static final String ORDER_STATUS_NO = "未到诊";

    private Integer id;
    private Integer reportId;

    private String fileNumber;//档案号
    private String name;//姓名
    private String phoneNumber;//手机号
    private Integer memberId;//会员id
    private Date orderDate;//预约日期
    private String orderType;//预约类型 电话预约/微信预约
    private String orderStatus;//预约状态（是否到诊）
    private Integer setmealId;//体检套餐id
    /**
     * 用户Id
     */
    private Integer userId;
    private String username;

    public Order(Integer id, Date order_Date, Integer checkSetmealId) {
        this.reportId = id;
    }

    public Order(Integer memberId, Date orderDate, String orderType, String orderStatus, Integer setmealId) {
        this.memberId = memberId;
        this.orderDate = orderDate;
        this.orderType = orderType;
        this.orderStatus = orderStatus;
        this.setmealId = setmealId;
    }

    public Order(Integer memberId, Date orderDate, String orderType, String orderStatus, Integer setmealId,Integer userId) {
        this.memberId = memberId;
        this.orderDate = orderDate;
        this.orderType = orderType;
        this.orderStatus = orderStatus;
        this.setmealId = setmealId;
        this.userId = userId;
    }
}
